#Boa:Frame:menuFrame

import wx
from FonteDeRendaFrame import *
from PacienteFrame import *
from ProfissionalFrame import *
from ReceberFrame import *
from RelatorioFrame import *

def create(parent):
    return menuFrame(parent)

[wxID_MENUFRAME, wxID_MENUFRAMEPANEL1, wxID_MENUFRAMESTATICBITMAP1, 
] = [wx.NewId() for _init_ctrls in range(3)]

[wxID_FRAME1CADASTRARFONTERENDA, wxID_FRAME1CADASTRARPACIENTE, 
] = [wx.NewId() for _init_coll_Cadastrar_Items in range(2)]

[wxID_MENUFRAMECADASTROFONTERENDA, wxID_MENUFRAMECADASTROPACIENTE, 
 wxID_MENUFRAMECADASTROPROFISSIOANL, 
] = [wx.NewId() for _init_coll_Cadastro_Items in range(3)]

[wxID_MENURECEBERRECEBER] = [wx.NewId() for _init_coll_Receber_Items in range(1)]

[wxID_MENUFRAMEVISUALIZARITEMS0] = [wx.NewId() for _init_coll_Visualizar_Items in range(1)]

[wxID_MENUFRAMERECEBERRECEBER] = [wx.NewId() for _init_coll_receber_Items in range(1)]

class menuFrame(wx.Frame):
    def _init_coll_receber_Items(self, parent):
        # generated method, don't edit

        parent.Append(help='', id=wxID_MENUFRAMERECEBERRECEBER,
              kind=wx.ITEM_NORMAL, text='Receber')
        self.Bind(wx.EVT_MENU, self.OnReceberReceberMenu,
              id=wxID_MENUFRAMERECEBERRECEBER)

    def _init_coll_Visualizar_Items(self, parent):
        # generated method, don't edit

        parent.Append(help='', id=wxID_MENUFRAMEVISUALIZARITEMS0,
              kind=wx.ITEM_NORMAL, text='Relat\xf3rio')
        self.Bind(wx.EVT_MENU, self.OnVisualizarItems0Menu,
              id=wxID_MENUFRAMEVISUALIZARITEMS0)

    def _init_coll_Cadastro_Items(self, parent):
        # generated method, don't edit

        parent.Append(help='', id=wxID_MENUFRAMECADASTROFONTERENDA,
              kind=wx.ITEM_NORMAL, text='Fonte de Renda')
        parent.Append(help='', id=wxID_MENUFRAMECADASTROPACIENTE,
              kind=wx.ITEM_NORMAL, text='Paciente')
        parent.Append(help='', id=wxID_MENUFRAMECADASTROPROFISSIOANL,
              kind=wx.ITEM_NORMAL, text='Profissional')
        self.Bind(wx.EVT_MENU, self.OnCadastroFonterendaMenu,
              id=wxID_MENUFRAMECADASTROFONTERENDA)
        self.Bind(wx.EVT_MENU, self.OnCadastroPacienteMenu,
              id=wxID_MENUFRAMECADASTROPACIENTE)
        self.Bind(wx.EVT_MENU, self.OnCadastroProfissioanlMenu,
              id=wxID_MENUFRAMECADASTROPROFISSIOANL)

    def _init_coll_menuBar1_Menus(self, parent):
        # generated method, don't edit

        parent.Append(menu=self.Cadastro, title='Cadastro')
        parent.Append(menu=self.receber, title='Receber')
        parent.Append(menu=self.Visualizar, title='Visualizar')
        parent.Append(menu=self.Sair, title='Sair')

    def _init_utils(self):
        # generated method, don't edit
        self.Cadastro = wx.Menu(title='Cadastro')

        self.menuBar1 = wx.MenuBar()

        self.Visualizar = wx.Menu(title='Visualizar')

        self.Sair = wx.Menu(title='Sair')

        self.receber = wx.Menu(title='Receber')

        self._init_coll_Cadastro_Items(self.Cadastro)
        self._init_coll_menuBar1_Menus(self.menuBar1)
        self._init_coll_Visualizar_Items(self.Visualizar)
        self._init_coll_receber_Items(self.receber)

    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_MENUFRAME, name='menuFrame',
              parent=prnt, pos=wx.Point(451, 243), size=wx.Size(423, 400),
              style=wx.DEFAULT_FRAME_STYLE, title='Menu')
        self._init_utils()
        self.SetClientSize(wx.Size(407, 362))
        self.SetMenuBar(self.menuBar1)
        self.SetToolTipString('menu')

        self.panel1 = wx.Panel(id=wxID_MENUFRAMEPANEL1, name='panel1',
              parent=self, pos=wx.Point(0, 0), size=wx.Size(407, 362),
              style=wx.TAB_TRAVERSAL)

        self.staticBitmap1 = wx.StaticBitmap(bitmap=wx.Bitmap(u'C:/Users/Evismar/Desktop/Gerenciador/saude-dinheiro.jpg',
              wx.BITMAP_TYPE_JPEG), id=wxID_MENUFRAMESTATICBITMAP1,
              name='staticBitmap1', parent=self.panel1, pos=wx.Point(-80, -56),
              size=wx.Size(560, 456), style=0)

    def __init__(self, parent):
        self._init_ctrls(parent)

    def OnCadastroFonterendaMenu(self, event):
        frm = fonteDeRendaFrame(self)
        frm.Show()
    def OnCadastroPacienteMenu(self, event):
        frm = pacienteFrame(self)
        frm.Show()

    def OnCadastroProfissioanlMenu(self, event):
        frm = profissionalFrame(self)
        frm.Show()

    def OnReceberReceberMenu(self, event):
        frm = receberFrame(self)
        frm.Show()

    def OnVisualizarItems0Menu(self, event):
        frm = relatorioFrame(self)
        frm.Show()

